package com.ruoyi.fuw.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 fuw_order
 * 
 * @author ruoyi
 * @date 2021-10-09
 */
public class FuwOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private String orderId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String personId;

    /** 合计金额 */
    @Excel(name = "合计金额")
    private BigDecimal allMoney;

    /** 订单生成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单生成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderStartTime;

    /** 订单结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderEndTime;

    /** 订单状态（0：订单刚刚生成；1：订单已经缴费；2：订单已经收货；4：订单异常） */
    @Excel(name = "订单状态", readConverterExp = "0=：订单刚刚生成；1：订单已经缴费；2：订单已经收货；4：订单异常")
    private String orderType;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setAllMoney(BigDecimal allMoney) 
    {
        this.allMoney = allMoney;
    }

    public BigDecimal getAllMoney() 
    {
        return allMoney;
    }
    public void setOrderStartTime(Date orderStartTime) 
    {
        this.orderStartTime = orderStartTime;
    }

    public Date getOrderStartTime() 
    {
        return orderStartTime;
    }
    public void setOrderEndTime(Date orderEndTime) 
    {
        this.orderEndTime = orderEndTime;
    }

    public Date getOrderEndTime() 
    {
        return orderEndTime;
    }
    public void setOrderType(String orderType)
    {
        this.orderType = orderType;
    }

    public String getOrderType()
    {
        return orderType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("personId", getPersonId())
            .append("allMoney", getAllMoney())
            .append("orderStartTime", getOrderStartTime())
            .append("orderEndTime", getOrderEndTime())
            .append("orderType", getOrderType())
            .toString();
    }
}
